package com.xmutca.sso.api.manager.service;

import com.xmutca.core.common.Receipt;
import com.xmutca.core.common.Result;
import com.xmutca.core.common.Results;
import com.xmutca.core.dubbo.ServiceMock;
import com.xmutca.sso.api.Role;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.List;
import java.util.Map;

/**
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-08-29 16:22
 */
public class RoleServiceMock extends ServiceMock implements RoleService {

    @Override
    public Receipt add(Role role, List<Integer> permissions) {
        return mock(Receipt.class);
    }

    @Override
    public Receipt del(Integer id) {
        return mock(Receipt.class);
    }

    @Override
    public Receipt batchDel(List<Integer> ids) {
        return mock(Receipt.class);
    }

    @Override
    public Receipt update(Role role, List<Integer> permissions) {
        return mock(Receipt.class);
    }

    @Override
    public Result<Role> get(Integer ids) {
        return mock(Result.class);
    }

    @Override
    public Results<Role> query(@Min(value = 1, message = "页数最小为1") int current, @Max(value = 50, message = "条数最大为50条") int pageSize, Map<String, Object> paramMap) {
        return mock(Results.class);
    }
}
